Git going with GitHub

Laura J. Brugger, Saint Louis University

Saturday, February 9, 2019

Set Up

Agenda

  1. Why Git and GitHub?
  2. Traditional Workflow vs. Git Workflow
  3. Make a repository on GitHub
  4. Make local changes in RStudio
  5. Make remote changes on GitHub
  6. Pull it all together!

Key Questions

Insert quote here !

Why Git and GitHub?

The Typical Workflow vs. Git Workflow

Git Workflow

Git Workflow

Git Workflow

Let’s Try!

Make a repo on GitHub

Clone the new GitHub repo to your computer via RStudio

Let’s make some local changes!

# git add -A
# git commit -a -m "[commit message]"
  ##The commit message is your own annotation
  ##For example "Edited readme to include volcano info"
# git push origin master

Let’s make some local changes in another way!

Let’s make remote changes from GitHub!

Testing R Markdown

Contributors & References

Appendix A: Set Up

# install if needed (only do this once)
# install.packages ("usethis")

#library(usethis)
#use_git_config(user.name = "Jane Doe", user.email= "jane@example.org")